package com.neuedu.api;

public class Human {


    public int age;

    public Human(int age) {
        this.age = age;
    }


    @Override
    public boolean equals(Object obj) {
        if(obj instanceof  Human){
            Human human = (Human) obj;
            return  this.age == human.age;
        }else{
            return false;
        }

    }

    @Override
    public int hashCode() {
        return Integer.hashCode(age);
    }
}
